package com.r2coding.test;

import com.r2coding.infrastructure.persistent.dao.IAwardDao;
import com.r2coding.infrastructure.persistent.po.Award;
import lombok.extern.slf4j.Slf4j;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

/**
 * 抽奖奖品Dao 单元测试类
 *
 * @author caolx
 * @date 2025/7/22 23:19
 */
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class AwardDaoTest {

    @Resource
    private IAwardDao awardDao;

    @Test
    public void test_queryAwardList() {
        List<Award> awards = awardDao.queryAwardList();
        Assert.assertNotNull(awards);
        System.out.println(awards);
    }
}
